package cn.janyd.jmall.management.converter.admin;

import cn.janyd.jmall.management.controller.admin.dto.AdminCreateDTO;
import cn.janyd.jmall.management.controller.admin.vo.AdminVO;
import cn.janyd.jmall.system.rpc.admin.dto.AdminCreateReqDTO;
import cn.janyd.jmall.system.rpc.admin.dto.AdminRespDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author Janyd
 * @since 2020-08-15 18:32
 */
@Mapper
public interface AdminConverter {

    AdminConverter INSTANCE = Mappers.getMapper(AdminConverter.class);

    AdminVO convert(AdminRespDTO adminRespDTO);

    AdminCreateReqDTO convert(AdminCreateDTO adminCreateDTO);
}
